package upx.miage2.tp.scm;

public class Person {

	private String nom;
	private String prenom;
	private int age;
	private String nationalite;
	private String adresse;
	private int NbVoitures;
	
	public Person(){
		nom="";
		prenom="";
		age=0;
		nationalite="";
		NbVoitures=0;
	}

	public Person(String nom, String prenom, int age, String nationalite) {
		this.nom = nom;
		this.prenom = prenom;
		this.age = age;
		this.nationalite = nationalite;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getNationalite() {
		return nationalite;
	}

	public void setNationalite(String nationalite) {
		this.nationalite = nationalite;
	}
	
	public String getAdresse() {
		return adresse;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	public String toString(){
		return "nom = " + nom +
			" prenom = " + prenom + 
			" age = " + age +
			" nationalite = " + nationalite;
	}
	
	public void ageIncremente(){
		this.age++;
	}
}
